﻿Imports GalaSoft.MvvmLight

Namespace FL_8x0.Model

    Public Class SoftwareInfo
        Inherits ViewModelBase

        Private _name As String

        Public Property Name() As String
            Get
                Return _name
            End Get
            Set(ByVal value As String)
                _name = value
                RaisePropertyChanged("EmailContent")
            End Set
        End Property


        Private _title As String

        Public Property Title() As String
            Get
                Return _title
            End Get
            Set(ByVal value As String)
                _title = value
                RaisePropertyChanged("EmailContent")
            End Set
        End Property

        Private _companyName As String

        Public Property CompanyName() As String
            Get
                Return _companyName
            End Get
            Set(ByVal value As String)
                _companyName = value
                RaisePropertyChanged("EmailContent")
            End Set
        End Property


        Private _phone As String

        Public Property Phone() As String
            Get
                Return _phone
            End Get
            Set(ByVal value As String)
                _phone = value
                RaisePropertyChanged("EmailContent")
            End Set
        End Property


        Private _email As String

        Public Property Email() As String
            Get
                Return _email
            End Get
            Set(ByVal value As String)
                _email = value
                RaisePropertyChanged("EmailContent")
            End Set
        End Property

        Private _ip As String

        Public Property Ip() As String
            Get
                Return _ip
            End Get
            Set(ByVal value As String)
                _ip = value
            End Set
        End Property

        Private _mac As String

        Public Property Mac() As String
            Get
                Return _mac
            End Get
            Set(ByVal value As String)
                _mac = value
            End Set
        End Property

        Private _softwareName As String

        Public Property SoftwareName() As String
            Get
                Return _softwareName
            End Get
            Set(ByVal value As String)
                _softwareName = value
            End Set
        End Property

        Private _version As String

        Public Property Version() As String
            Get
                Return _version
            End Get
            Set(ByVal value As String)
                _version = value
            End Set
        End Property


        Private _emailContent As String

        Public Property EmailContent() As String
            Get
                Return $"姓名:{Name}{Environment.NewLine}岗位: {Title}{Environment.NewLine}公司名称:{CompanyName}{Environment.NewLine}" & $"手机:{Phone}{Environment.NewLine}邮箱:{Email}{Environment.NewLine}机器码:{Mac}{Environment.NewLine}" & $"软件名称:{SoftwareName}{Environment.NewLine}版本:{Version}{Environment.NewLine}"
            End Get
            Set(ByVal value As String)
                _emailContent = value
            End Set
        End Property
    End Class
End Namespace